class CreateMessages < ActiveRecord::Migration
  def self.up
     create_table :messages do |t|
       t.integer :sender, :null => false
       t.integer :recipient, :null => false
       t.string :title, :limit => 150, :null => false
       t.string :body, :limit => 1000, :null => false
       t.boolean :read, :default => false
       t.timestamp :created_at
     end
  end

  def self.down
    drop_table :messages
  end
end
